/*
 * @Description: 秋
 * @Author: hwh
 * @Date: 2024-09-05 11:16:07
 * @LastEditors: hwh
 * @LastEditTime: 2024-09-05 14:31:18
 */
public class Test01{
     public static void main(String[] args){
        int[][] arr={
            {1,2},
            {3,4}
        };
        int sum = 0;
              for (int i = 0; i < arr.length; i++) {
                       for (int j = 0; j < arr[i].length; j++) {
                            sum += arr[i][j];
                       }
              }
              System.out.println("和是: "+sum);

     }

}